<?php
	// Includes obligatorios
	include ('./dbconfig.php');
	include ('../Libraries/Tools/JLTools.class.php');
	
	// Objeto JLTools
	$jl = new JLTools();
	
	$SQL = "SELECT 
      tbl_contact_csme.int_id_contact_csme,
      tbl_contact_csme.var_cont_nom,
      tbl_contact_csme.var_cont_status,
      tbl_contact_csme.var_cont_tel,
      tbl_contact_csme.var_cont_email,
      tbl_states.var_htmldesc
    FROM
      tbl_states
      INNER JOIN tbl_contact_csme ON (tbl_states.int_id_state = tbl_contact_csme.int_id_state) ";
   	$campoId = "int_id_contact_csme";
 
	$jl->dataGridJSON( $cnn, $SQL, $campoId ); 

	// Cerrar la coneccion obligatorio
	mysql_close($cnn); 
?>